import request from "../utils/request";

export const register = (params: any) => request.post("/user/register", params);

export const login = (params: any) => request.post("/user/login", params);

export const logout = () => request.post("/user/logout");

export const userInfo = () => request.get("/user/info");

export const editUserInfo = (params:any) => request.put("/user/info",params);

